import {
    createFromIconfontCN
} from '@ant-design/icons';
import {
    message
} from 'antd';

// React IconFont 标签
export const IconFont = createFromIconfontCN({
    scriptUrl: 'http://at.alicdn.com/t/font_1900343_rvmzgmqoa.js',
});

// 后端IP
export const backIP: string = '/api'

// axios请求的标准格式
export interface axiosConfig {
    code: number,
    data: any,
    message: string,
}

// antd的三种提醒框
export const success = (msg: string) => {
    message.success(msg);
};
export const error = (msg: string) => {
    message.error(msg);
};
export const warning = (msg: string) => {
    message.warning(msg);
};